#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
#include common_scripts\utility;
#include maps\mp\iSnipe\HudElements;

KillstreakInit()
{
	self endon( "disconnect" );
	
	Startscore = self.pers["kills"];
	Startdeaths = self.pers["deaths"];

	Killstreak1 = self createFontString("default", 1.4);
	Killstreak2 = self createFontString("default", 1.4);
	Killstreak1 setPoint("TOPLEFT", "TOPLEFT", 12, 150);
	Killstreak2 setPoint("TOPLEFT", "TOPLEFT", 94, 150);
	Killstreak1.hidewheninmenu = true;
	Killstreak2.hidewheninmenu = true;
	self thread disposeOnDeath(Killstreak1);
	self thread disposeOnDeath(Killstreak2);
	
	while( self.pers["deaths"] == Startdeaths )
	{
		Killstreak = self.pers["kills"] - Startscore;
		Killstreak1 setText( "Killstreak: ");
		Killstreak2 setText( Killstreak );
		wait 0.1;
	}
}